package cn.wolfcode.shop.cloud.mq;

/**
 * Created by wolfcode-lanxw
 */
public interface MQConstants {

    /**
     * 秒杀订单主题
     */
    String SECKILL_ORDER_TOPIC = "SECKILL_ORDER_TOPIC";

    /**
     * 创建秒杀订单标签
     */
    String CREATE_ORDER_TAG = "CREATE_ORDER_TAG";
    /* 创建订单消费者组 */
    String CREATE_ORDER_CONSUMER_GROUP = "CREATE_ORDER_CONSUMER_GROUP";
    /* 创建订单消息发送目的地 */
    String CREATE_ORDER_DEST = SECKILL_ORDER_TOPIC + ":" + CREATE_ORDER_TAG;

    /**
     * 秒杀成功标签
     */
    String SECKILL_SUCCESS_TAG = "SECKILL_SUCCESS_TAG";
    /* 秒杀成功消费者组 */
    String SECKILL_SUCCESS_CONSUMER_GROUP = "SECKILL_SUCCESS_CONSUMER_GROUP";
    /* 秒杀成功消息发送目的地 */
    String SECKILL_SUCCESS_DEST = SECKILL_ORDER_TOPIC + ":" + SECKILL_SUCCESS_TAG;

    /**
     * 秒杀失败标签
     */
    String SECKILL_FAILED_TAG = "SECKILL_FAILED_TAG";
    /* 秒杀失败消费者组 */
    String SECKILL_FAILED_CONSUMER_GROUP = "SECKILL_FAILED_CONSUMER_GROUP";
    /* 秒杀失败消息发送目的地 */
    String SECKILL_FAILED_DEST = SECKILL_ORDER_TOPIC + ":" + SECKILL_FAILED_TAG;

    /**
     * 订单支付延迟消息标签
     */
    String DELAY_SECKILL_ORDER_TAG = "DELAY_SECKILL_ORDER_TAG";
    /* 订单支付延迟消息消费者组 */
    String DELAY_SECKILL_ORDER_CONSUMER_GROUP = "DELAY_SECKILL_ORDER_CONSUMER_GROUP";
    /* 订单支付延迟消息消息发送目的地 */
    String DELAY_SECKILL_ORDER_DEST = SECKILL_ORDER_TOPIC + ":" + DELAY_SECKILL_ORDER_TAG;

    /**
     * 订单支付延迟消息标签
     */
    String CLEAR_STOCK_COUNT_FLAG_ORDER_TAG = "CLEAR_STOCK_COUNT_FLAG_ORDER_TAG";
    /* 订单支付延迟消息消费者组 */
    String CLEAR_STOCK_COUNT_FLAG_ORDER_CONSUMER_GROUP = "CLEAR_STOCK_COUNT_FLAG_ORDER_CONSUMER_GROUP";
    /* 订单支付延迟消息消息发送目的地 */
    String CLEAR_STOCK_COUNT_FLAG_ORDER_DEST = SECKILL_ORDER_TOPIC + ":" + CLEAR_STOCK_COUNT_FLAG_ORDER_TAG;
}
